﻿using Microsoft.AspNetCore.Mvc;
using PLCS.Application.Contracts.TaskApp;
using PLCS.Domain.Stations;
using PLCS.SocialHttpClient.Test;
using Volo.Abp.AspNetCore.Mvc;

namespace PLCS.SocialHttpApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ValueController : AbpControllerBase
    {
        private readonly IStationRepository stationRepository;
        private readonly ITaskAppService taskService;
        private readonly TestSocialService testSocialService;

        public ValueController(IStationRepository stationRepository, ITaskAppService taskService, TestSocialService testSocialService)
        {
            this.stationRepository = stationRepository;
            this.taskService = taskService;
            this.testSocialService = testSocialService;
        }

        [HttpPost]
        public async Task<string> Test01()
        {
            var a = await testSocialService.GetEquipmentsAsync();
            return a.ToString();
        }
    }
}